// sql buidler settings

import { ref } from "vue";
import type { SqlBuilderSettings } from "../components/sql/types";

export const sqlBuilderSettings = ref<SqlBuilderSettings>({
  identifiers: {
    id: "",
    field: "",
    value: "",
    valueToRemove: "",
    extra: "",
  },
  idFieldName: "",
  isTextId: false,
  scriptColumnHeader: "SQL_SCRIPT",
  extraLogic: "AND",
  categoricalUpdateKind: "APPEND",
  buildDataTable: false,
  dataTable: {
    addPercentage: false,
    decimalPlaces: 0,
    resultPageName: "SQL_TABLE",
  },
});
